package com.itheima.domain;

import java.io.Serializable;
/*
    学生类
 */
public class Student implements Serializable {
    //学生姓名
    private String name;
    //学生年龄
    private int age;
    //学生成绩
    private int score;
    //无参构造
    public Student() {
    }
    //带参构造
    public Student(String name, int age, int score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }
    //GetterAndSetter

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
